﻿@{
    Layout = "../Shared/_InnerPage.cshtml";
}
@model XoohooViewModelItem<SiteInput>
@section TitleContent{
    @Html.SiteTitle("系统管理", "系统配置")
}
@section NavigationContent
{
    当前位置：系统管理 &gt;&gt; 系统配置
}
@{
    SiteInput site = Model.Item;
    Html.BeginRouteForm("Admin.System.SiteConfig", FormMethod.Post, new { @id = "SiteConfigForm", @name = "SiteConfigForm" });
    @Html.XoohooAntiForgeryToken()
}
<table cellpadding="4" cellspacing="0" class="tbl">
    <tr>
        <td class="tit">
            系统名称：
        </td>
        <td class="con">
            @Html.TextBoxFor(site, item => item.SiteName, new { @class = "input" })
        </td>
        <td>
            @Html.ValidationMessageFor(site, item => item.SiteName, "请输入系统名称")
        </td>
    </tr>
    <tr>
        <td class="tit">
            系统地址：
        </td>
        <td class="con">
            @Html.TextBoxFor(site, item => item.SiteHost, new { @class = "input" })
        </td>
        <td>
            @Html.ValidationMessageFor(site, item => item.SiteHost, "请输入系统地址")
        </td>
    </tr>
    <tr>
        <td class="tit">
            系统主标题：
        </td>
        <td class="con">
            @Html.TextBoxFor(site, item => item.SiteTitle, new { @class = "input" })
        </td>
        <td>
            @Html.ValidationMessageFor(site, item => item.SiteTitle, "请输入系统主标题,可为空")
        </td>
    </tr>
    <tr>
        <td class="tit">
            系统关键字：
        </td>
        <td class="con">
            @Html.TextBoxFor(site, item => item.SiteKeywords, new { @class = "input" })
        </td>
        <td>
            @Html.ValidationMessageFor(site, item => item.SiteKeywords, "请输入系统关键字,可为空")
        </td>
    </tr>
    <tr>
        <td class="tit">
            系统描述：
        </td>
        <td class="con">
            @Html.TextAreaFor(site, item => item.SiteDescription, 4, 20, new { @class = "textarea" })
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td class="tit">
            版权信息：
        </td>
        <td class="con">
            @Html.TextAreaFor(site, item => item.Copyright, 4, 20, new { @class = "textarea" })
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td class="tit">
            系统小图标：
        </td>
        <td class="con">
            @Html.TextBoxFor(site, item => item.FavIconUrl, new { @class = "input" })
        </td>
        <td>
            @Html.ValidationMessageFor(site, item => item.FavIconUrl, "请输入系统小图标,可为空")
        </td>
    </tr>
    <tr>
        <td class="tit">
            标题分隔符：
        </td>
        <td class="con">
            @Html.TextBoxFor(site, item => item.PageTitleSeparator, new { @class = "input" })
        </td>
        <td>
            @Html.ValidationMessageFor(site, item => item.PageTitleSeparator, "请输入标题分隔符,可为空")
        </td>
    </tr>
    <tr>
        <td class="tit">
            皮肤主目录：
        </td>
        <td class="con">
            @Html.TextBoxFor(site, item => item.SkinsPath, new { @class = "input" })
        </td>
        <td>
            @Html.ValidationMessageFor(site, item => item.SkinsPath, "请输入皮肤主目录")
        </td>
    </tr>
    <tr>
        <td class="tit">
            后台目录：
        </td>
        <td class="con">
            @Html.TextBoxFor(site, item => item.AdminPath, new { @class = "input" })
        </td>
        <td>
            @Html.ValidationMessageFor(site, item => item.AdminPath, "请输入后台目录,可为空")
        </td>
    </tr>
    <tr>
        <td class="tit">
            物理路径：
        </td>
        <td class="con">
            @{WriteLiteral(Request.PhysicalApplicationPath);}
        </td>
    </tr>
    <tr>
        <td class="tit">
        </td>
        <td>
            @Html.ImageButton("btnSubmit", "Styles/Images/btnSubmit.jpg")
        </td>
    </tr>
    <tr>
        <td class="tit">
        </td>
        <td colspan="2">
            <br />
            <strong>备注：</strong><br />
            <br />
            重新设置皮肤相关属性，需手工调整相应目录并重启站点。
            <br />
            <br />
            View 查找规则：<br />
            {皮肤主目录}/{模块皮肤名}/View/{Controller名}/{View名}
            <br />
            <br />
            Style 查找规则(使用Html.RenderCssFile方法)：<br />
            {皮肤主目录}/{模块皮肤名}/{样式文件路径}
            <br />
            <br />
            Script查找规则(使用Html.RenderScriptTag方法)：<br />
            {皮肤主目录}/{模块皮肤名}/{脚本文件路径}
            <br />
            <br />
            以后台举例如：<br />
            皮肤主目录(~/Skins)
            <br />
            脚本主目录(Scripts)
            <br />
            样式表目录(Styles)
            <br />
            模块皮肤名(AdminDefault)
            <br />
            则：<br />
            View 查找规则：
            <br />
            ~/Skins/AdminDefault/View/{Controller名}/{View名}
            <br />
            ~/Skins/AdminDefault/View/Shared/{View名}
            <br />
            ~/View/{Controller名}/{View名}
            <br />
            ~/View/Shared/{View名}
            <br />
            <br />
            Style 查找规则：
            <br />
            ~/Skins/AdminDefault/Css文件名
            <br />
            ~/Styles/Css文件名
            <br />
            <br />
            Script 查找规则：
            <br />
            ~/Skins/AdminDefault/Script文件名
            <br />
            ~/Scripts/Script文件名
        </td>
    </tr>
</table>
@{Html.EndForm();}
